package cn.tmpan.boot.model;

import java.io.Serializable;

public class TestTable implements Serializable {
    private Integer id;

    private String snoDesc;

    private static final long serialVersionUID = 1L;

    public TestTable(Integer id, String snoDesc) {
        this.id = id;
        this.snoDesc = snoDesc;
    }

    public TestTable() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getSnoDesc() {
        return snoDesc;
    }

    public void setSnoDesc(String snoDesc) {
        this.snoDesc = snoDesc == null ? null : snoDesc.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TestTable other = (TestTable) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getSnoDesc() == null ? other.getSnoDesc() == null : this.getSnoDesc().equals(other.getSnoDesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getSnoDesc() == null) ? 0 : getSnoDesc().hashCode());
        return result;
    }
}